// import { CategoryModule } from './category/category.module';
// import { ChatModule } from './chat/chat.module';
// import { ProductModule } from './product/product.module';
// import { PersonalModule } from './personal/personal.module';
// import { HomeModule } from './home/home.module';
// import { RecommendModule } from './recommend/recommend.module';
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { SharedModule } from './shared/shared.module';
import { environment } from 'src/environments/environment';
import { StoreModule } from '@ngrx/store';
@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    HttpClientModule,
    // 公共模块
    SharedModule,
    // 路由
    AppRoutingModule,
    StoreModule.forRoot({}),
    // footer模块
    // HomeModule,
    // RecommendModule,
    // PersonalModule,
    // ProductModule,
    // ChatModule,
    // CategoryModule,
    StoreDevtoolsModule.instrument({
      maxAge: 25, // Retains last 25 states
      logOnly: environment.production, // Restrict extension to log-only mode
      autoPause: true, // Pauses recording actions and state changes when the extension window is not open
    }),
  ],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}
